package com.hqj.demo01;

/**
 * 接口
 */
public class Test04 {

    Home h = new HomeCar();
    Car c = new HomeCar();
    HomeCar hc = new HomeCar();
}

interface Home{
    public final static String HOME_NAME = "爱之家";
    public abstract void sleep();
}
interface Car{
    public final static String brand = "五菱";
    public void drive();
}

class HomeCar implements Home,Car{

    @Override
    public void sleep() {

    }

    @Override
    public void drive() {

    }
}
